package com.lyb.springbootredisclient.app.sattagy;

import com.lyb.springbootredisclient.app.TestRedisServiceImpl;
import com.lyb.springbootredisclient.entity.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: lyb  2023/6/20 14:44
 */
@Service
public class LybServiceImpl implements LybService {
    private static final Logger LOGGER = LoggerFactory.getLogger(LybServiceImpl.class);
    @Override
    public void doServiceProcess(List<String> strings) {
        LOGGER.info(";;;;;;;;;;;;;;;;;;;;;;;;;;;;;{}", strings);
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        LOGGER.info(";;;;;;;;;;;;;;;;;;;;;;;;;;;;;{}", Thread.currentThread().getName());
    }
}
